<div>
    <span style="font-size: 20px;">轮播图<hr></span>
</div>
<div>
    <a class="layui-btn" href="{:url('Banner/addbanner')}">添加</a>
</div>
<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post', url:'{:url('Banner/banner')}', page:true, id:'idDemo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field: 'banner_time'}">创建时间</th>
        <th lay-data="{toolbar: '#banner_path'}">图片</th>
        <th lay-data="{toolbar: '#info'}">操作</th>
    </tr>
    </thead>
</table>

<script type="text/html" id="info">
    <a class="layui-btn layui-btn-normal layui-btn-xs" href="{:url('Banner/updbanner')}?banner_id={{d.banner_id}}">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs ajax-delete" href="{:url('Banner/delbanner')}?banner_id={{d.banner_id}}" data-msg="确认删除吗？" data-title="删除轮播图">删除</a>
</script>
<script type="text/html" id="banner_path">
    <img src="{{d.banner_path}}" width="30"/>
</script>
